-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0 preview #7372
3.0 preview #7372
Conversation
private static ConcurrentHashMap<String, MeshAppRuleListener> appRuleListeners = new ConcurrentHashMap<>(); | ||
|
||
public static void subscribeAppRule(String app) { | ||
// 注册 diamond 的监听 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls comment in english
import java.util.Map; | ||
|
||
|
||
public class BaseRule { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls override equal
and hashcode
method
package org.apache.dubbo.rpc.cluster.router.mesh.rule.destination; | ||
|
||
|
||
public class TCPSettings { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this class used for? without getter and setter method
package org.apache.dubbo.rpc.cluster.router.mesh.rule.destination; | ||
|
||
|
||
public class TcpKeepalive { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this class used for? without getter and setter method
public class DubboMethodArg { | ||
private int index; | ||
private String type; | ||
private ListStringMatch str_value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls use lower camel rule
|
||
|
||
public class DubboMethodMatch { | ||
private StringMatch name_match; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls use lower camel rule
Yaml yaml = new Yaml(); | ||
DestinationRule destinationRule = yaml.loadAs(this.getClass().getClassLoader().getResourceAsStream("DestinationRuleTest.yaml"), DestinationRule.class); | ||
|
||
System.out.println(destinationRule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System.out.println
has no effect in ut
Yaml yaml = new Yaml(); | ||
VirtualServiceRule virtualServiceRule = yaml.loadAs(this.getClass().getClassLoader().getResourceAsStream("VirtualServiceTest.yaml"), VirtualServiceRule.class); | ||
|
||
System.out.println(virtualServiceRule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be better to change to equal check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check why integration test failed. Or maybe you can merge the latest 3.0-preview
branch to your branch.
Codecov Report
@@ Coverage Diff @@
## 3.0-preview #7372 +/- ##
=================================================
+ Coverage 57.13% 57.54% +0.40%
- Complexity 356 357 +1
=================================================
Files 983 1018 +35
Lines 40155 40746 +591
Branches 5999 6087 +88
=================================================
+ Hits 22943 23446 +503
- Misses 14501 14560 +59
- Partials 2711 2740 +29
Continue to review full report at Codecov.
|
What is the purpose of the change
to support mesh style route rule